// page p0000 controller
var p0001Controller = (function($) {

	var key = 'p0001';
	var selector = '#' + key;
	var page = 'pages/' + key + '.html';

	var draw = function () {};

	var show = function () {
		$.esPage.moveTo(selector);
		app.afterLoad(selector);
		draw();
	};

	var obj = {

		init: function (callback) {
			app.loadPage(page, function () {
				$(selector).esPage();
				if (callback)
					callback();
			});
		},

		refresh: draw,
		show: show
	};

	app.registerPageController(key, obj);

	return obj;

})(jQuery);